package com.hx.vending.service;

import com.hx.vending.bean.OnlineOrder;
import com.hx.vending.bean.entity.GoodsOrderVO;
import com.hx.vending.util.Msg;

import java.util.List;
import java.util.Map;

/**
 * Created by Administrator on 2018/12/7.
 */
public interface IOnlineOrderService {

    Msg selectOnlineOrderUserId(Integer userId,String startTime,String endTime,Integer[] integers);
     /*根据商家id
	 条件查询集合对象
	 playerId/startTime,endTime/orderDealNumber/orderState
	 */
    Msg getOnlineOrderList(Map<String, Object> paramMap,Integer userId,Integer[] integers);

    Msg getOrderList(Map<String, Object> paramMap,Integer userId,Integer[] integers);

    /**
     * 微信支付添加订单信息
     * @param outTradeNoStr    商户订单号
     * @param equipmentId      设备id
     * @param total            金额
     * @return
     */
    Integer insertOnlineOrder(String outTradeNoStr, String equipmentId, Double total);

    List<Map<String,Object>> selectOnlineOrderAmountByFieldId(List<Integer> fieldList,String startTime, String endTime,Integer userId);

    /**
     * 线上榜单排行
     * @param startTime   开始时间
     * @param endTime     结束时间
     * @param pageNum     页码
     * @return
     */
    Msg selectListRanking(String startTime, String endTime, Integer pageNum, Integer rankingNumber);

    /**
     * 根据线上订单id查询信息
     * @param onlineOrderId
     * @return
     */
    Msg selectOnlineOrderById(Integer onlineOrderId);

    /**
     * 根据订单号查询线上订单
     * @param merchantNumber
     * @return
     */
    Msg getOnlineOrderByMerchantNumber(String merchantNumber);

    OnlineOrder selectByPrimaryKeySelective(OnlineOrder onlineOrder);

    Msg selectOrderByEquipment(String equipmentId, Integer pageNum,Integer pageSize);

}
